package com.subject.shuati.application.covert;

import com.subject.shuati.application.dto.SubjectLabelDto;
import com.subject.shuati.domain.entity.SubjectLabelBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * BO与Dto之间的转换
 */
@Mapper
public interface SubjectLabelDtoConverter {

    SubjectLabelDtoConverter INSTANCE = Mappers.getMapper(SubjectLabelDtoConverter.class);

    /**
     * dto转bo
     * @param subjectLabelDto
     * @return
     */
    SubjectLabelBo labelDtoConverterLabelBo(SubjectLabelDto subjectLabelDto);

    /**
     * BoList转DtoList
     * @param subjectLabelBoList
     * @return
     */
    List<SubjectLabelDto> converterToLabelDtoList(List<SubjectLabelBo> subjectLabelBoList);
}
